home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-20 | 383 b | 16 lines | [TEXT/KAHL] |
- ;THis is a PDP-8 assembly language program
-
-
- ORG %100 ;set origin of code to zero
- EQU count %11+%100
-
- CLA ;clear accumulator
- LOOP: TAD count ;get data into acc (added to zero)
- CLL ;clear the link bit
- RTL ;multiply acc by 2
- TAD count ;add in original value
- SNA ;if zero, we finished
- HLT
- DCA count ;write it back
- JMP loop
- END